package com.jiaai.web.zfp_back.system;

import com.alibaba.dubbo.config.annotation.Reference;
import com.jiaai.system.api.ILivePermission;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018\3\23 0023.
 */
@RequestMapping("/api/v1/admin/common")
@RestController
public class AdminCommonConteller {

    @Reference
    private ILivePermission livePermission;

    @RequestMapping("/livePermissions/{type}")
    public  Object getLivePermissions(@PathVariable("type") String type){
        return livePermission.findByType(type);
    }


}
